<template>
    <div>
        <!-- input区域 -->
        <el-input v-model="roleName" disabled size="mini"></el-input>

        <!-- 树状区域 -->
        <el-tree
        >
        </el-tree>

        <!-- 按钮区 -->
        <el-button type="primary">保存</el-button>
        <el-button>取消</el-button>
    </div>
</template>

<script>
import roleApi from '@/api/acl/role'
export default {
    name: "VAuth",
    methods: {
        async getData(){
            console.log(1);
            let res = await roleApi.getAssign(this.rowId)
            console.log(res);
        }
    },
    computed:{
        //角色id
        rowId(){
            return this.$route.query.id
        },
        //角色名字
        roleName(){
            return this.$route.query.roleName
        }
    },
    mounted() {
        this.getData()
    },
}
</script>

<style lang="less" scoped>

</style>